package com.duowan.realtime.thrift;

import org.apache.thrift.async.AsyncMethodCallback;

public class MethodCallback implements AsyncMethodCallback<Object> {

	Object response = null;

	public Object getResult() {
		// 返回结果值
		return this.response;
	}

	@Override
	public void onComplete(Object response) {
		this.response = response;
	}

	@Override
	public void onError(Exception exception) {

	}

}
